<?php
/**
 * 供应商结算方式（基础）
 * (model)
 */
namespace App\Models\Basics;

use Illuminate\Database\Eloquent\Model;
class SettlementMethod extends Model
{
    protected $table = 'b_settlement_method';

    public $timestamps = false;

    protected $guarded = [];

    public static $_status = [
        1 => '启用',
        2 => '停用',
    ];

    public static function options($where = [])
    {
        $query = $where ? self::query()->where(formatCondition($where)) : self::query();
        return $query->orderBy('id')->pluck('settlement_method','id');
    }

}
